//
//  ViewController.swift
//  APPDemo
//
//  Created by 郭红旗 on 2021/10/12.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let button = UIButton.init(type: .custom)
        button.frame = CGRect.init(x: 100, y: 100, width: 100, height: 50)
        button.backgroundColor = UIColor.red
        button.addTarget(self, action: #selector(tapAction), for: .touchUpInside)
        self.view.addSubview(button)

    }
    
    @objc func tapAction(){
        
    }


}

